package cn.dnui_xqh414.dnuifood_16110100414.iface;

import cn.dnui_xqh414.dnuifood_16110100414.listener.OnRetrofitListener;

public interface UserIface {
    void login(String username,
               String userpass,
               OnRetrofitListener listener);

    void register(String username,
                  String userpass,
                  String mobilenum,
                  String address,
                  String comment,
                  OnRetrofitListener listener);

    void getUser(int userId,
                 OnRetrofitListener listener);

    void JustBuyIt(int userId,int foodId,int num,int sum,
                   String time,
                   String address,
                   OnRetrofitListener listener);

    void UpdateUser(int UserId,String username,String userpass,
                    String mobilenum,String address,OnRetrofitListener listener);

    void insertComment(int item_id,String content,OnRetrofitListener listener);

    void getAllOrder(int UserID,OnRetrofitListener listener);
}
